
QT       += core gui network
QT       += printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = NLink
TEMPLATE = app

CONFIG += console

#DISTFILES += \
#    configs/config_com.json \
#    configs/config_ctl.json \
#    configs/config.json \
#    configs/config_sim.json \
#    configs/config_uav.json

HEADERS += \
#   linktrack
    src/linktrack/init.h \
    src/linktrack/protocols.h \
    src/linktrack/protocols_data.h \
#   protocol_extracter
    src/utils/protocol_extracter/nprotocol_base.h \
    src/utils/protocol_extracter/nprotocol_extracter.h \
#   nlink_unpack: linktrack, linktrack_aoa, tofsense
    src/utils/nlink_unpack/nlink_utils.h \
    src/utils/nlink_unpack/nlink_linktrack_anchorframe0.h \
    src/utils/nlink_unpack/nlink_linktrack_tagframe0.h \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe0.h \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe1.h \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe2.h \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe3.h \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe5.h \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe6.h \
    src/utils/nlink_unpack/nlink_tofsense_frame0.h \
    src/utils/nlink_unpack/nlink_linktrack_aoa_nodeframe0.h \
#   serial
    src/utils/init_serial.h \
    src/utils/nlink_protocol.h \
    serial/include/serial/serial.h \
    serial/include/serial/impl/unix.h \
    src/utils/nutils.h


SOURCES += \
#   linktrack
    src/linktrack/init.cpp \
    src/linktrack/protocols.cpp \
    src/linktrack/main.cpp \
    src/linktrack/main_rviz_converter.cpp \
#   protocol_extracter
    src/utils/protocol_extracter/nprotocol_base.cpp \
    src/utils/protocol_extracter/nprotocol_extracter.cpp \
#   nlink_unpack: linktrack, linktrack_aoa, tofsense
    src/utils/nlink_unpack/nlink_utils.c \
    src/utils/nlink_unpack/nlink_linktrack_anchorframe0.c \
    src/utils/nlink_unpack/nlink_linktrack_tagframe0.c \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe0.c \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe1.c \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe2.c \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe3.c \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe5.c \
    src/utils/nlink_unpack/nlink_linktrack_nodeframe6.c \
    src/utils/nlink_unpack/nlink_tofsense_frame0.c \
    src/utils/nlink_unpack/nlink_linktrack_aoa_nodeframe0.c \
#   serial
    src/utils/init_serial.cpp \
    src/utils/nlink_protocol.cpp \
    serial/src/serial.cc \
    serial/src/impl/unix.cc \
    src/utils/nutils.cpp

INCLUDEPATH += \
    src \
    src/linktrack \
    src/utils \
    src/utils/protocol_extracter \
    src/utils/nlink_unpack \
    serial \
    serial/include \
    serial/include/serial \
    serial/src

#LIBS += -lpthread
